package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 门户字段维护表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-19
 */
@Data
@Accessors(chain = true)
@TableName("platform_field_select")
@ApiModel(value = "FieldSelect对象", description = "门户字段维护表")
public class FieldSelect extends Model<FieldSelect> {

    @ApiModelProperty("主键")
    @TableId(value = "field_id", type = IdType.AUTO)
    private Long fieldId;

    @ApiModelProperty("新增产品所需信息(value `company` `section`)")
    @TableField("field_type")
    private String fieldType;

    @ApiModelProperty("字段名称")
    @TableField("field_name")
    private String fieldName;

    @ApiModelProperty("排序")
    @TableField("order_num")
    private Integer orderNum;

    @ApiModelProperty("字段默认标识(0 默认 1 非默认)")
    @TableField("default_flag")
    private Integer defaultFlag;

    @ApiModelProperty("字段是否隐藏（0 隐藏 1 显示）")
    @TableField("hidden_flag")
    private Integer hiddenFlag;

    @ApiModelProperty("字段描述")
    @TableField("`desc`")
    private String desc;


    public static final String FIELD_ID = "field_id";

    public static final String FIELD_TYPE = "field_type";

    public static final String FIELD_NAME = "field_name";

    public static final String ORDER_NUM = "order_num";

    public static final String DEFAULT_FLAG = "default_flag";

    public static final String HIDDEN_FLAG = "hidden_flag";

    public static final String DESC = "desc";

    @Override
    public Serializable pkVal() {
        return this.fieldId;
    }

}
